package com.bh.common.core.vo;

import com.bh.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 用户对象 sys_user
 *
 * @author ruo-yi
 */
@ApiModel(value = "用户信息修改对象", description = "用户信息修改对象")
@Data
public class UserVo {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 登录名称
     */
    @Excel(name = "登录名称")
    private String userName;

    /**
     * 用户名称
     */
    @Excel(name = "用户名称")
    private String nickName;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String phonenumber;

    /**
     * 微信小程序登录
     */
    private String openId;

    /**
     * 用户性别
     */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /**
     * 用户头像
     */
    private String avatar;

    /**
     * 密码
     */
    private String password;


    @JsonIgnore
    public String getOpenId() {
        return openId;
    }

    @JsonProperty
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @JsonIgnore
    public String getPassword() {
        return password;
    }

    @JsonProperty
    public void setPassword(String password) {
        this.password = password;
    }
}
